DoubleRange

interface DoubleRange

Range of doubles.

Properties

Link copied to clipboard
An empty double range.

Functions

Link copied to clipboard
open fun clamp(value: Double): Double
Clamps a value to this range.
Link copied to clipboard
open fun contains(value: Double): Boolean
Tells whether this range may contain some value.
Link copied to clipboard
abstract fun getLower(): Double
Gets lower bound.
Link copied to clipboard
abstract fun getUpper(): Double
Gets upper bound.
Link copied to clipboard
open fun of(lower: Double, upper: Double): DoubleRange
Creates an immutable DoubleRange.
Link copied to clipboard
open fun scaleFrom(value: Double, @NonNull src: DoubleRange): Double
Scales a value from a given range to this range.